package cn.neusoft.mapper;

import cn.neusoft.domain.Warehouse;
import cn.neusoft.query.BaseQuery;

import java.util.List;

public interface WarehouseMapper {

    int add(Warehouse warehouse);

    int deleteById(Long warehouse_id);

    int update(Warehouse warehouse);

    Warehouse findById(Long warehouse_id);

    List<Warehouse> findAll();

    List<Warehouse> findByCondition(BaseQuery query);

    List<String> getDistinctAddress();  // 得到去重后的地址
}